/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tickets.tickets;

/**
 * Base class for all possible tickets
 * @author Hlib_Babii
 */
public abstract class Ticket {
    
    Ticket() {
    }
    
    abstract public long getId();
    
    abstract public TicketType getType();
    
    abstract PassageState check();

    void putMoney(int ammount) throws WrongTicketTypeException {
        throw new WrongTicketTypeException();
    }

    abstract void use();
}
